package com.spzx.common.security.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface SpzxCache {
    //锁前缀
    String lockPrefix() default "spzx:lock";
    //缓存前缀
    String cachePrefix() default "spzx:cache";
    //锁超时时间
    int lockTimeout() default 5;
    //缓存超时时间
    int cacheTimeout() default 600;
    //随机因子
    int randomFactor() default 50;
    //空值的缓存时间
    int emptyCacheTimeout() default 30;
}
